package com.fish.anne.dao.ibatis;

import java.util.List;

import com.fish.anne.model.SystemAdminRole;
import com.fish.anne.dao.SystemAdminRoleDao;
import com.fish.anne.dao.ibatis.GenericDaoiBatis;

public class SystemAdminRoleDaoiBatis extends GenericDaoiBatis<SystemAdminRole, Long> implements SystemAdminRoleDao {

    public SystemAdminRoleDaoiBatis() {
        super(SystemAdminRole.class);
    }

	public void removeByAdminId(Long adminId) {
		getSqlMapClientTemplate().delete("removeByAdminId", adminId)
		;
	}

	@SuppressWarnings("unchecked")
	public List<SystemAdminRole> findByAdminId(Long adminId) {
		return getSqlMapClientTemplate().queryForList( "findByAdminId", adminId);
	}
}
